﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_btnAdd_clicked();
    void on_btnDel_clicked();
    void on_btnOk_clicked();
    void on_btnCancel_clicked();
    void on_btnFind_clicked();
    void on_btnShow_clicked();

private:
    void initSql();
    void initModel();

private:
    Ui::Widget *ui;

    QSqlTableModel* m_pModel;
};

#endif // WIDGET_H
